package com.run.guifeng.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@TableName("guifeng_mall_goods_category")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class GoodsCategory extends BaseEntity {
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    /**
     * 商品分级：1为一级分类
     *          2为二级分类
     *          3为三级分类
     */
    @TableField(value="category_level",exist=true)
    private Integer categoryLevel;

    /**
     * 父分类id
     */
    @TableField(value="parent_id",exist=true)
    private Integer parentId;

    @TableField(value="category_name",exist=true)
    private String categoryName;

    @TableField(value="category_rank",exist=true)
    private Integer categoryRank;

    @TableField(value="create_user",exist=true)
    private Integer createUser;

    @TableField(value="update_user",exist=true)
    private Integer updateUser;

    @TableField(value = "is_deleted", exist = true)
    private Boolean deleted;

}
